package enity;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@AllArgsConstructor
@Data
public class Person {
    private String name;
    private Integer age;
    private String sex;
    private Double salary;

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", salary=" + salary +
                '}';
    }

    public static ArrayList<Person> getPersons(){
        ArrayList<Person> people=new ArrayList<>();
        people.add(new Person("李铭晗",22,"男",10001.0));
        people.add(new Person("梅花十三",18,"女",5800.0));
        people.add(new Person("伍六七",22,"男",6800.0));
        people.add(new Person("青凤",22,"男",8900.0));
        people.add(new Person("赤牙",35,"男",9800.0));
        people.add(new Person("江主任",36,"女",10000.0));
        people.add(new Person("何大春",20,"男",3500.0));
        return people;
    }
}
